#include "Client.h"
#include "Window.h"

Window::Window(Client* cli, const char* t, int w, int h){
	gePrintDebug(0, "Window::Window 1\n");
	client = cli;
	strncpy(title, t, 64);
	width = w;
	height = h;
	gePrintDebug(0, "Window::Window 2\n");
	win = geGuiCreateWindow(title, width, height, GE_WINDOW_FULLWINDOW | GE_WINDOW_TRANSPARENT);
	gePrintDebug(0, "Window::Window 3\n");
	geGuiStyleFont(win->style, client->res.font, 18);
	win->visible = false;
	visible = false;
	gePrintDebug(0, "Window::Window 4\n");
}

Window::~Window(){
}

void Window::Show(){
	visible = true;
	win->visible = true;
}

void Window::Hide(){
	visible = false;
	win->visible = false;
}

bool Window::isVisible(){
	return visible;
}
